package interpreter;

import java.util.HashMap;

public class RealResult {
	//public int C, P, L, M; // Parameters from the milestone
	public int []params;
	public static String []params_codes;
	public static String []params_names;
	public int N; // number of measurements
	
	// Throughput
	public double Tmean;
	public double TstdDev;
	
	public int confidence1percent;
	public int confidence2percent;
	
	public double confidence1Tmin;
	public double confidence1Tmax;
	public double confidence2Tmin;
	public double confidence2Tmax;
	
	// Average Response Time
	public double ARTmean;
	public double ARTstdDev;
	
	public double confidence1ARTmin;
	public double confidence1ARTmax;
	public double confidence2ARTmin;
	public double confidence2ARTmax;
	
	// Median Response Time
	public double MRTmean;
	public double MRTstdDev;
	
	public double confidence1MRTmin;
	public double confidence1MRTmax;
	public double confidence2MRTmin;
	public double confidence2MRTmax;
	
	// ADDED TO SOLVE TASK1
	public int steps;
	public double []measuredThroughput;
	public double []measuredResponseTime;
	public double []measuredThinkTime;
	// END ADDED ....
	
	public double utilizationPercentage;
	public long thinkTime;
	public long serviceTime;
	
	// ADDED TO SOLVE TASK2
//	public long []jobsArriving;
//	public long []jobsCompleted;
//	public long []jobsRemaining;
//	public double []busyTime;
//	public double []averageTimeSpentInSystem;
//	public int MARGIN;
	
	//
	
	// END ADDED
	
	// ADDED TO SOLVE TASK3
	public Task2and3Data task2;
	public HashMap<String, Task2and3Data> task3;
	// END ADDED
	public int averageJobNumber;
	
	public boolean matches(int []_params) {
		boolean result = true;
		if(_params.length != params.length) {
			return false;
		}
		for(int i=0; i<params.length; i++) {
			result = result && (_params[i]==0 || _params[i]==params[i]);
		}
		return result;
	}
}
